<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>内容编辑</title>
<link rel="stylesheet" href="__PUBLIC__/css/pintuer.css">
<link rel="stylesheet" href="__PUBLIC__/css/admin.css">
<script src="__PUBLIC__/js/jquery.js"></script>
<script src="__PUBLIC__/js/pintuer.js"></script>

<link type="text/css" rel="stylesheet" href="/Public/Plugins/jquery-time/admin.css" />
<link rel="stylesheet" type="text/css" href="/Public/Plugins/jquery-time/jquery-ui.css" />
<script type="text/javascript" src="/Public/Plugins/jquery-time/jquery-ui-1.10.4.custom.min.js"></script>
<script type="text/javascript" src="/Public/Plugins/jquery-time/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="/Public/Plugins/jquery-time/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript" src="/Public/Plugins/jquery-time/jquery-ui-timepicker-zh-CN.js"></script>
<style type="text/css">
.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
.ui-timepicker-div dl { text-align: left; }
.ui-timepicker-div dl dt { float: left; clear:left; padding: 0 0 0 5px; }
.ui-timepicker-div dl dd { margin: 0 10px 10px 45%; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
.ui-timepicker-rtl{ direction: rtl; }
.ui-timepicker-rtl dl { text-align: right; padding: 0 5px 0 0; }
.ui-timepicker-rtl dl dt{ float: right; clear: right; }
.ui-timepicker-rtl dl dd { margin: 0 45% 10px 10px; }
.inputfile {width: 0.1px; height: 0.1px; opacity: 0; overflow: hidden; position: absolute; z-index: -1;}
.input{width:50%;}
select{height:40px;}
</style>

<js file="/Public/Ueditor/ueditor.config.js"/>  
<js file="/Public/Ueditor/ueditor.all.min.js"/>  
<script type="text/javascript" charset="utf-8">
  window.onload=function(){
    UE.getEditor('contents');
    }
</script> 
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>编辑内容</strong></div>
  <div class="body-content">
    <form method="post" enctype="multipart/form-data" class="form-x" action="{:U('Admin/Page/edit')}">  
      <div class="form-group">
        <div class="label">
          <label>标题：</label>
        </div>
        <div class="field">
        	<input type="hidden" name="id" value="{$data.id}" />
          <input type="text" class="input w50" value="{$data.title}" name="title" maxlength="100" placeholder="请输入标题" data-validate="required:请输入标题" />
          <div class="tips"></div>
        </div>
      </div>
       <div class="form-group">
        <div class="label">
          <label>英文别名：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="alias" onkeyup="value=value.replace(/[^a-z0-9A-Z]/g,'')" placeholder="请输英文别名" style="width:15%; float:left;" value="{$data.alias}"  />
          <div class="tips"></div>
        </div>
      </div>
     
      <div class="form-group">
        <div class="label">
          <label>内容：</label>
        </div>
        <div class="field">
          <textarea name="content" id="contents" style="width:860px;height:300px;">{$data.content}</textarea>
          <div class="tips"></div>
        </div>
      </div>
     
      <div class="clear"></div>
     
      <div class="form-group">
        <div class="label">
          <label>关键字：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="seo_keywords" style="width:60%" maxlength="100" placeholder="每个关键字以英文逗号分隔"  value="{$data.seo_keywords}"/>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>描述：</label>
        </div>
        <div class="field">
          <textarea type="text" class="input" name="seo_desc" style="width:60%" style="height:80px;">{$data.seo_desc}</textarea>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>排序：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="sort" onkeyup="value=value.replace(/[^\d]/g,'')" style="width:15%; float:left;" value="{$data.sort}"  />
          <div class="tips"></div>
        </div>
      </div>
     
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>

</body></html>